package com.zzcoder.mall.data.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@ApiModel(value = "收件地址")
@Data
@Table
@Entity
public class UmsAddress extends BaseEntity {
    @ApiModelProperty(value = "会员ID")
    @Column
    private Long memberId;

    @ApiModelProperty(value = "收件人")
    @Column
    private String receiverName;

    @ApiModelProperty(value = "收件人号码")
    @Column
    private String receiverPhone;

    @ApiModelProperty(value = "省代码")
    @Column
    private String receiverProvinceCode;

    @ApiModelProperty(value = "省")
    @Column
    private String receiverProvince;

    @ApiModelProperty(value = "市代码")
    @Column
    private String receiverCityCode;

    @ApiModelProperty(value = "市")
    @Column
    private String receiverCity;

    @ApiModelProperty(value = "区代码")
    @Column
    private String receiverDistrictCode;

    @ApiModelProperty(value = "区")
    @Column
    private String receiverDistrict;

    @ApiModelProperty(value = "详细地址")
    @Column
    private String receiverAddress;
}
